/*
 * *
 * author:cgm
 * date:18-5-22 下午3:23
 * /
 */

package com.kaili.controller.common.v1;

import com.kaili.db.service.IHsOptQueryService;
import com.kaili.pojo.dto.query.QueryBean;
import com.kaili.pojo.dto.track.EwbTrackDTO;
import com.kaili.version.ApiVersion;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * package name:com.kaili.controller author:hasee date :2018/5/22 project:micro-service
 */
@ApiVersion(1)
@RequestMapping("/{api_version}")
@RestController("queryControllerC")
@Api(tags = "[PDA和WEB端通用]快件跟踪服务", description = "[PDA和WEB端通用]快件跟踪服务API")
public class QueryController {
    @Autowired
    IHsOptQueryService queryService;

    @GetMapping("/c/ewbTracks")
    @ApiOperation(value = "快件跟踪查询")
    List<QueryBean> getList(@ModelAttribute EwbTrackDTO rewbDTO) {
        return queryService.getQueryInfo(rewbDTO.getEwbNo());
    }
}
